package com.guigu.pd.serviceapi.basefeign;

import com.guigu.pd.serviceapi.pojo.TransportLine;
import com.guigu.pd.serviceapi.pojo.TransportTrips;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

@FeignClient(value = "pd-base",path = "base/transporttrips")
public interface TransportTripsFeign {

    //根据线路id获取所有的车次列表
    @GetMapping("/querytransporttripsbytransportlineid/{transportlineid}")
    List<TransportTrips> querytransporttripsbytransportlineid(@PathVariable("transportlineid") String transportlineid);
}
